﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IRepository.WareHouse
{
    /// <summary>
    /// 生产退料
    /// </summary>
    public interface IOrderProductReceiveRepository
    {
        /// <summary>
        /// 新增生产退料
        /// </summary>
        /// <param name="model"></param>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> AddOrderProductReceive(OrderProductReceive model, List<OrderProductReceiveItem> list);

        /// <summary>
        /// 修改生产退料
        /// </summary>
        /// <param name="model"></param>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> UpdateOrderProductReceive(OrderProductReceive model, List<OrderProductReceiveItem> list);




        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public Task<bool> Delete(int[] Ids);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public Task<bool> Delete(int Id);




    }
}
